package ${package}.${moduleName}.service;

import java.io.Serializable;
import java.util.List;
import tk.mybatis.mapper.entity.Example;
import com.qigio.api.util.Page;

public interface BaseService<T> {
	Page<T> page(Example example, int pageNum, int pageSize);

	List<T> list(Example example);

	T getByPrimaryKey(Serializable id);

	boolean removeByPrimaryKey(Serializable id);

	boolean insert(T entity);

	boolean updateByPrimaryKey(T entity);

	boolean updateByPrimaryKeySelective(T entity);

	boolean updateByExample(T entity, Example example);

	boolean updateByExampleSelective(T entity, Example example);
}